package cn.edu.kzjsxy.graduationproject.service;

import cn.edu.kzjsxy.graduationproject.common.Page;
import cn.edu.kzjsxy.graduationproject.common.Result;
import cn.edu.kzjsxy.graduationproject.dto.DormitoryDTO;
import cn.edu.kzjsxy.graduationproject.entity.Dormitories;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 宿舍信息表 服务类
 * </p>
 *
 * @author chén jiā jùn
 * @since 2024-04-14
 */
public interface IDormitoriesService extends IService<Dormitories> {

//	根据条件查询宿舍信息
List<Dormitories> selectDormitoriesByCondition(Dormitories dormitories);

//  根据ID获取宿舍信息
DormitoryDTO	selectDormitoryDTOById(String dormitoryId);

//分页获取宿舍信息
Result<PageInfo<Dormitories>> selectDormitoriesByPage(Page page, Dormitories dormitories);

//分页获取宿舍信息
Result<PageInfo<DormitoryDTO>> selectDormitoryDTOByPage(Page page, DormitoryDTO dormitoryDTO, HttpServletRequest request);


}
